package com.xiaozhengkeji.blogsuper.base.service;

import org.springframework.stereotype.Service;
import javax.annotation.Resource;
import com.xiaozhengkeji.blogsuper.base.entitys.ArticleClassEntity;
import java.util.List;
import com.xiaozhengkeji.blogsuper.base.mapper.ArticleClassEntityMapper;

@Service
public class ArticleClassEntityService {

    @Resource
    private ArticleClassEntityMapper articleClassEntityMapper;


    public int deleteByPrimaryKey(Integer id) {
        return articleClassEntityMapper.deleteByPrimaryKey(id);
    }


    public int insert(ArticleClassEntity record) {
        return articleClassEntityMapper.insert(record);
    }


    public int insertSelective(ArticleClassEntity record) {
        return articleClassEntityMapper.insertSelective(record);
    }


    public ArticleClassEntity selectByPrimaryKey(Integer id) {
        return articleClassEntityMapper.selectByPrimaryKey(id);
    }


    public int updateByPrimaryKeySelective(ArticleClassEntity record) {
        return articleClassEntityMapper.updateByPrimaryKeySelective(record);
    }


    public int updateByPrimaryKey(ArticleClassEntity record) {
        return articleClassEntityMapper.updateByPrimaryKey(record);
    }


    public List<ArticleClassEntity> queryByAll(ArticleClassEntity articleClassEntity) {
        return articleClassEntityMapper.queryByAll(articleClassEntity);
    }


    public List<ArticleClassEntity> queryAllByEnable(Integer enable) {
        return articleClassEntityMapper.queryAllByEnable(enable);
    }

    public List<ArticleClassEntity> queryByCategoryName(String categoryName) {
        return articleClassEntityMapper.queryByCategoryName(categoryName);
    }
}

